package com.k136.config.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * TODO 类
 *
 * @author LiuTai
 * @version 1.00
 * @Date 2024/9/3
 */
@Component
public class MyListener implements ApplicationListener {
    @Override
    public void onApplicationEvent(ApplicationEvent event) {
        System.out.println("事件监听处理中："+event.getTimestamp());
        System.out.println("事件监听处理中："+event.getSource());
    }
}
